package com.cgg.stock.deal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cgg.stock.common.pojo.HoldStock;
import com.cgg.stock.common.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 处理订单持久层接口
 * @Date: 2023/2/16 16:02
 * @Author: SinkDream
 */
@Mapper
public interface DealMapper extends BaseMapper<HoldStock> {

    HoldStock selectByAccountAndStockId(@Param("userAccount") Long userAccount,@Param("stockId") String stockId);

    void updateTotalByAccountAndStockId(@Param("totalNum") Integer totalNum,@Param("userAccount") Long userAccount,@Param("stockId") String stockId);

    void updateStatusByAccountAndStockId(@Param("userAccount") Long userAccount,@Param("stockId") String stockId);
}
